var app = new Vue({
	el: '#app',
	data: {
		host:globalData.constParam.url.baseUrl+'/',
		infos:{
			user:globalData.userInfo
		},//用户的所有信息
		product_detail:{},
		guide_map:[],
		src:'',
		url:{
			getMoreHelpOfProductDetailImgs:'/api/Banner/GetMoreHelpOfProductDetailImgs', //获取帮助图片
		},
		detail_show:false , //同类产品
		list_info:[], //同类产品列表
	},
	mounted: function() {
		var that = this;
		that.product_detail = globalData.getStorage('product_detail')
		console.log(this.product_detail)
		console.log(this.infos)
	},
	methods: {		
		getMoreHelpOfProductDetailImgs:function(){
			var that = this;
			if(that.guide_map.length<1){
				globalData.ajaxPost(that.url.getMoreHelpOfProductDetailImgs,null,function(res){
					console.log(res)
					that.guide_map = res.data
					that.reset_lunbo()
				})
			}else{
				that.reset_lunbo()				
			}
		},
		reset_lunbo:function(){
			$("#modal_photos").modal()
			setTimeout(function(){
			 var mySwiper = new Swiper('#modal_photos .swiper-container', {
				loop: true,
				// 如果需要分页器
				pagination: '#modal_photos .swiper-pagination',
				freeMode:false,
				speed:10,
				autoplayDisableOnInteraction : false,
				})
			},100)
		}
	},
	filters:{
		
	}
})